﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Softserve.Pottery.Store.Domains;

namespace Pottery.Frontend.Models
{
    public class CartModel
    {
        private CartModel()
        {
            CartList = new List<Product>();
        }

        #region Get instance of Cart

        public static CartModel Instance 
        {
            get
            {
                if (m_CartModel == null)
                {
                    m_CartModel = new CartModel();
                }

                return m_CartModel;
            }
        }

        #endregion


        public List<Product> CartList { get; set; }
        private static CartModel m_CartModel;
    }
}